import request from '@/utils/request'

//查询所有活动
export function index(data) {
  return request({
    url: '/user/activity/admin/',
    method: 'get',
    data
  })
}

//获得可用的可以被发布给的管理员的名单
export function getAdmin(params) {
  return request({
    url: '/user/activity/admin/getAdmin',
    method: 'get',
    params
  })
}

//创建活动
export function createActivity(params) {
  return request({
    url: '/user/activity/admin/create',
    method: 'post',
    params
  })
}

